package com.sg.controller.bff;

import com.sg.service.biz.bff.SystemTestDomainService;
import com.sg.dto.biz.bff.req.*;
import com.sg.dto.biz.bff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(value = "SystemTestDomain", tags = {"SystemTestDomain"})
@RestController
// @RequestMapping("/oms/systemTestDomain/")
public class SystemTestDomainController {
    @Autowired
    SystemTestDomainService systemTestDomainService;

    /**
     * B3一键构造单条被评对象目标周期标准数据验证数据
     * gen by moon at 9/8/2022, 11:06:53 PM
     */
    @PostMapping("/oms/systemTestDomain/autoBuildSingleEvaObjTarCycStaData")
    @ApiOperation(value = "B3一键构造单条被评对象目标周期标准数据验证数据", response = OkrResult.class)
    public OkrResult<BffAutoBuildSingleEvaObjTarCycStaDataRespDto> autoBuildSingleEvaObjTarCycStaData(@RequestBody(required = false) @Validated BffAutoBuildSingleEvaObjTarCycStaDataReqDto reqDTO) {
        return OkrResult.success(systemTestDomainService.autoBuildSingleEvaObjTarCycStaData(reqDTO));
    }

}

